package springannotaion.bean;

/**
 * @author: wyy-sss
 * @date: 2020-02-09 10:49
 **/
public class A2 {

	private String name;

	private String id;

	private D2 d2;

	public A2() {
		System.out.println("A2的构造方法执行**************");
	}

	public void sayHello(){
		System.out.println("哈哈哈哈哈哈");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public D2 getD2() {
		return d2;
	}

	public void setD2(D2 d2) {
		this.d2 = d2;
	}

	@Override
	public String toString() {
		return "A2{" +
				"name='" + name + '\'' +
				", id='" + id + '\'' +
				", d2=" + d2 +
				'}';
	}
}
